﻿using SIG.DAL.Dapper.Repositories;
using System.Web.Mvc;

namespace SIG.WebMVC.Controllers
{
    public class MenuController : BaseController
    {
        private readonly MenuRepository _menuRepository;   
        public MenuController()
        {
            _menuRepository = new MenuRepository();
          
        }
       
        public PartialViewResult SiteNav()
        {
            var vm = _menuRepository.GetFrontMenus(2);
            return PartialView("_SiteNav", vm);
        }
        public PartialViewResult AboutNav()
        {
            var vm = _menuRepository.GetFrontMenus(4);
            return PartialView("_AboutNav", vm);
        }
        public PartialViewResult AffirmationNav()
        {
            var vm = _menuRepository.GetFrontMenus(4);
            return PartialView("_AffirmationNav", vm);
        }
        
    }
}